# Create your views here.
from django.http import HttpResponse
from django.template.loader import get_template
from django.template import Context
from django.http import HttpResponse
from django.shortcuts import render, render_to_response
from django.template import RequestContext
from register.models import Register
from django.utils import timezone
def index(request):
	#return render(request, "register/1.html")
	return render_to_response("register/reg.html", context_instance=RequestContext(request)) 
def reg(request ):
	account = request.POST['inputEmail']
	password = request.POST['inputPassword']
	print account
	print password
	s=Register(account=account,password=password,time=timezone.now())
	s.save()
	return render_to_response('register/detail.html',{'message':'sucess'})  
